#include "cpu.h"

// define cpu 6502's register
struct cpu6502_t {
	UINT16 pc;
	UINT16 sp;
	UINT8 p;
	UINT8 a;
	UINT8 x;
	UINT8 y;
}

strcut cpu6502_t cpu;

/* 
 * Excute gived cycles
 */

UINT32 CPU6502_Run(UINT32 cycles)
{
	UINT32 cur_cycles = 0;
	UINT8 opcode = 0;
	UINT16 data16 = 0;
	UINT16 addr = 0;


	while (cur_cycles < cycles) {
		opcode = CPU6502_FetchB(cpu.pc++);

		switch (opcode)
		case 0x65:
			break;
		case 0x69:
			break;
		default:
			break;
	}

	return cur_cycles;
}
